package com.nageoffer.shortlink.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.nageoffer.shortlink.admin.pojo.dto.req.UserLoginReqDTO;
import com.nageoffer.shortlink.admin.pojo.dto.req.UserRegisterReqDTO;
import com.nageoffer.shortlink.admin.pojo.dto.req.UserUpdateReqDTO;
import com.nageoffer.shortlink.admin.pojo.dto.resp.UserLoginRespDTO;
import com.nageoffer.shortlink.admin.pojo.dto.resp.UserRespDTO;
import com.nageoffer.shortlink.admin.pojo.entity.User;
import org.springframework.web.bind.annotation.RequestBody;

public interface UserService extends IService<User> {
    public UserRespDTO getUserByUsername(String username);

    Boolean availableUername(String username);

    void userRegister(UserRegisterReqDTO requestParam);

    void update(@RequestBody UserUpdateReqDTO requestParam);

    UserLoginRespDTO login(UserLoginReqDTO requestParam);

    Boolean checkLogin(String username, String token);

    void logout(String username, String token);
}